package eip.chapter9.splitaggregate;

import java.io.Serializable;

public class ReservationInfo implements InformationResponse, Serializable {

	private static final long serialVersionUID = 384148386952441455L;
	
	private String reservationID;
	private String checkinDate;
	private String checkoutDate;
	private String roomNumber;
	private double amountPaid;
	private int numberOfMoviesRented;
	private int numberOfDrinksOrdered;
	
	public ReservationInfo() {
	}
	
	public ReservationInfo(String reservationID, String checkinDate, String checkoutDate, String roomNumber, double amountPaid, int numberOfMoviesRented, int numberOfDrinksOrdered) {
		this.reservationID = reservationID;
		this.checkinDate = checkinDate;
		this.checkoutDate = checkoutDate;
		this.roomNumber = roomNumber;
		this.amountPaid = amountPaid;
		this.numberOfMoviesRented = numberOfMoviesRented;
		this.numberOfDrinksOrdered = numberOfDrinksOrdered;
	}
	
	public double getAmountPaid() {
		return amountPaid;
	}
	public void setAmountPaid(double amountPaid) {
		this.amountPaid = amountPaid;
	}
	public String getCheckinDate() {
		return checkinDate;
	}
	public void setCheckinDate(String checkinDate) {
		this.checkinDate = checkinDate;
	}
	public String getCheckoutDate() {
		return checkoutDate;
	}
	public void setCheckoutDate(String checkoutDate) {
		this.checkoutDate = checkoutDate;
	}
	public int getNumberOfDrinksOrdered() {
		return numberOfDrinksOrdered;
	}
	public void setNumberOfDrinksOrdered(int numberOfDrinksOrdered) {
		this.numberOfDrinksOrdered = numberOfDrinksOrdered;
	}
	public int getNumberOfMoviesRented() {
		return numberOfMoviesRented;
	}
	public void setNumberOfMoviesRented(int numberOfMoviesRented) {
		this.numberOfMoviesRented = numberOfMoviesRented;
	}
	public String getRoomNumber() {
		return roomNumber;
	}
	public void setRoomNumber(String roomNumber) {
		this.roomNumber = roomNumber;
	}

	public String getReservationID() {
		return reservationID;
	}

	public void setReservationID(String reservationID) {
		this.reservationID = reservationID;
	}

	/**
	 * toString method: creates a String representation of the object
	 * @return the String representation
	 * @author e.sale
	 */
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("ReservationInfo[");
		buffer.append("amountPaid = ").append(amountPaid);
		buffer.append(", checkinDate = ").append(checkinDate);
		buffer.append(", checkoutDate = ").append(checkoutDate);
		buffer.append(", numberOfDrinksOrdered = ").append(
				numberOfDrinksOrdered);
		buffer.append(", numberOfMoviesRented = ").append(numberOfMoviesRented);
		buffer.append(", reservationID = ").append(reservationID);
		buffer.append(", roomNumber = ").append(roomNumber);
		buffer.append("]");
		return buffer.toString();
	}
}
